<template>
  <div>
    <el-result icon="success" title="下单成功" :sub-title="`您的订单号：${orderId}`">
      <template #extra>
        <el-button type="primary" @click="goHome">返回首页</el-button>
      </template>
    </el-result>
  </div>
</template>

<script setup>
const props = defineProps(['orderId'])
function goHome() {
  window.location.href = '/'
}
</script> 